/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.fleet.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.fleet.entity.WagesDetil;
import com.jeeplus.modules.fleet.mapper.WagesDetilMapper;

/**
 * 车队收支Service
 * @author 李超辉
 * @version 2018-10-15
 */
@Service
@Transactional(readOnly = true)
public class WagesDetilService extends CrudService<WagesDetilMapper, WagesDetil> {

	public WagesDetil get(String id) {
		return super.get(id);
	}
	
	public List<WagesDetil> findList(WagesDetil wagesDetil) {
		return super.findList(wagesDetil);
	}
	
	public Page<WagesDetil> findPage(Page<WagesDetil> page, WagesDetil wagesDetil) {
		return super.findPage(page, wagesDetil);
	}
	public Page<WagesDetil> findPage1(Page<WagesDetil> page, WagesDetil wagesDetil) {
		List<WagesDetil> liat=getListByyear();
		page.setList(liat);
		return page;
	}
	public Page<WagesDetil> findPage2(Page<WagesDetil> page, WagesDetil wagesDetil) {
		List<WagesDetil> liat=getListByYue();
		page.setList(liat);
		return page;
	}
	public Page<WagesDetil> findPage3(Page<WagesDetil> page, WagesDetil wagesDetil) {
		List<WagesDetil> liat=getListBybsc();
		page.setList(liat);
		return page;
	}
	public List<WagesDetil> getListByYue(){
		return  mapper.getListByYue();
	};
	public List<WagesDetil> getListBybsc(){
		return  mapper.getListBybsc();
	};
	public List<WagesDetil> getListByyear(){
		return  mapper.getListByyear();
	};
	@Transactional(readOnly = false)
	public void save(WagesDetil wagesDetil) {
		super.save(wagesDetil);
	}
	
	@Transactional(readOnly = false)
	public void delete(WagesDetil wagesDetil) {
		super.delete(wagesDetil);
	}
	
}